 function COMMON() {
     this.init = function() {
         $(".navlink-wechat").popover({
             container: "body",
             toggle: "popover",
             placement: "bottom",
             trigger: 'hover',
             container: '.navlink-wechat',
             html: true,
             content: '<div style="text-align: center; min-width: 100px;"><img src="/static/images/www.png" alt="农业产业园公众号" width="160" height="160"><span>微信扫一扫</span></div>'
         });
         this.events();
         //缩略图图片修正
         //  $('img.thumb').each(function() {
         //      $(this).parent().width()
         //      $(this).jqthumb({
         //          width: $(this).parent().width(),
         //          height: $(this).parent().height()
         //      });
         //  })
         return this;
     }

     this.search = function() {

     }

     this.events = function() {
         $('.search-box .btn-search').click(function() {
             let value = $('.search-box .search-input').val();
             alert(value)
         })
     }
 }
 $(function() {
     window._common = new COMMON().init();
 });